using MediatR;
using System;
using Work.ErrorCode;

namespace Work.API.Applications.Write.Commands
{
    /// <summary>
    /// 创建病历命令
    /// </summary>
    public class CreateMedicalRecordCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 预约ID
        /// </summary>
        public int AppointmentId { get; set; }

        /// <summary>
        /// 患者ID
        /// </summary>
        public int PatientId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string? CardNumber { get; set; }

        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? PatientName { get; set; }

        /// <summary>
        /// 医生姓名
        /// </summary>
        public string? DoctorName { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        public string? Department { get; set; }

        /// <summary>
        /// 主诉
        /// </summary>
        public string? ChiefComplaint { get; set; }

        /// <summary>
        /// 现病史
        /// </summary>
        public string? PresentIllness { get; set; }

        /// <summary>
        /// 既往史
        /// </summary>
        public string? PastHistory { get; set; }

        /// <summary>
        /// 诊断
        /// </summary>
        public string? Diagnosis { get; set; }

        /// <summary>
        /// 治疗方案
        /// </summary>
        public string? Treatment { get; set; }

        /// <summary>
        /// 处方
        /// </summary>
        public string? Prescription { get; set; }

        /// <summary>
        /// 医嘱
        /// </summary>
        public string? Advice { get; set; }

        /// <summary>
        /// 就诊日期
        /// </summary>
        public DateTime? VisitDate { get; set; }

        /// <summary>
        /// 状态（草稿/已完成）
        /// </summary>
        public string? Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remarks { get; set; }
    }
}








